"use strict";

/**
 * Created by evenvi on 16-3-29.
 */

/** 基本用法 */
{
    var _a = 10;
    var b = 1;
}
b;
//a

/** 不存在变量提升 */
var a = [];

var _loop = function _loop(i) {
    a[i] = function () {
        console.log(i);
    };
};

for (var i = 0; i < 10; i++) {
    _loop(i);
}
a[6]();

console.log(foo);
console.log(bar);

var foo;
var bar = void 0;
